package com.jumi.microservice.material.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.jumi.microservice.material.domain.JmMaterialAttribute;
import com.jumi.microservice.material.domain.example.JmMaterialAttributeExample;

/**
 * @description: 商品属性Mapper接口
 * @author: ZhangY
 */
@Repository
public interface JmMaterialAttributeMapper
{
	/**
	 * @Description: 根据主键删除
	 * @Param: [attrId]
	 * @Return: int
	 */
	int deleteByPrimaryKey(@Param("attrId") Integer attrId, @Param("updateBy") String updateBy);

	/**
	 * @Description: 保存一条数据
	 * @Param: [attr]
	 * @Return: int
	 */
	int insertSelective(JmMaterialAttribute attr);

	/**
	 * @Description: 条件查询
	 * @Param: [example]
	 * @Return: java.util.List<com.jumi.microservice.material.domain.Attr>
	 */
	List<JmMaterialAttribute> selectByExample(JmMaterialAttributeExample example);

	/**
	 * @Description: 根据主键查询一条数据
	 * @Param: [attrId]
	 * @Return: com.jumi.microservice.material.domain.Attr
	 */
	JmMaterialAttribute selectByPrimaryKey(Integer attrId);

	/**
	 * @Description: 更新一条数据
	 * @Param: [attr]
	 * @Return: int
	 */
	int updateByPrimaryKeySelective(JmMaterialAttribute attr);

	/**
	 * @Description: 查询属性表所有属性名称(除去删除)
	 * @Param: []
	 * @Return: java.util.List<java.lang.String>
	 */
	List<String> selectAllAttrNames();
}